# Scripts\menu.gd
extends Control

# 打开菜单默认聚焦的菜单项
@export var _default_focus_item: Control

func open():
    # visible为ture, 该节点可见(同时父节点也要可见才能显示)
    visible = true
    _default_focus_item.grab_focus()

func close():
    # visible为false, 该节点不可见
    visible = false